<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>会员中心</title>
		<link rel="stylesheet" type="text/css" href="/css/base.css" />
		<link rel="stylesheet" type="text/css" href="/css/member.css" />
		<link rel="stylesheet" type="text/css" href="/css/member_main.css"/>
		<link rel="stylesheet" type="text/css" href="/css/icon.css"/>
		<link rel="stylesheet" type="text/css" href="/css/member_collect.css"/>
		<script src="/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="/js/search.js" type="text/javascript" charset="utf-8"></script>
	</head>

	<body>
		<div id="container">
			<!--设置整个页面居中，需要设定margin并且需要设定width宽度-->
			<!--开头-->
			<!--应用网页模板-->
			<% include ../template/header.html %>				
			<!--新版导航结束-->
			<!--导航结束-->
			<!--内容开始-->
			<div id="content" class="clearfix">
				<!--外层布局-->
				<!--左栏-->
				<% include ../template/member_siderlist.html %>					
				<!--会员中心主内容区域-->
				<div class="sider_right fr">
					<!--欢迎区域-->
					<div class="menber_welcome">
						<div class="clearfix">
							<div class="member-welcome-tips fl clearfix">
								<!--头像-->
								<div class="tips_left fl">
									<a href="#"><img src="img/member/default_head_img.png" /></a>
								</div>
								<div class="tips_right fl">
									<div class="tips_01 clearfix">
										<img class="fl" src="img/member/center_icon01.png" />
										<a class="fl" href="#"><%=userInfo.mobile_phone%></a>
									</div>
									<div class="tips_02 clearfix">
										<div class="tips_level fl">
											<img src="img/member/level1.png" />
										</div>
										<span class="fl">
                                  	  	 		我的成长值:<b><%=userInfo.level%></b>分
                                  	  	 	</span>
									</div>
									<div class="tips_03">
										<a href="#">查看成长值记录</a>
									</div>
								</div>
							</div>
							<div class="member-welcome-desc fl">
								<ul class="clearfix">
									<li>
										<a href="/member/member_orderlist"><img src="img/member/center_orders.png" /></a>我的订单</li>
									<li>
										<a href="/member/member_address"><img src="img/member/center_address.png" /></a>我的收货地址</li>
									<li>
										<a href="#"><img src="img/member/center_coupon.png" /></a>我的优惠券</li>
									<li>
										<a href="#"><img src="img/member/center_jifen.png" /></a>我的积分</li>
								</ul>
							</div>
						</div>
						<div class="member-welcome-alert">
							<a href="#">未付款订单<span><%=noPayOrderCounts%></span></a><span>|</span>
							<a href="#">到货通知<span><%=noReciveOrderCounts%></span></a><span>|</span>
							<a href="#">评论回复<span>0</span></a>

						</div>
					</div>
					<!--订单区域-->
					<div class="member_order">
						<div class="member-mod-title">
							<h2>最近的订单</h2>
						</div>
						<div class="member-mod-content">
							<table class="newlyOrderlist">
								<thead>
								<tr>
									<th>订单号</th>
									<th>金额</th>
									<th>下单时间</th>
									<th>订单状态</th>
									<th>支付方式</th>
									<th>操作</th>
								</tr>
								</thead>
								<%if(newlyOrderlist.length>0){%>
								<tbody>
									<%for(i=0;i<newlyOrderlist.length;i++){%>
									<tr>
										<td><%=newlyOrderlist[i].order_code%></td>
										<td>¥<%=newlyOrderlist[i].orderamount%></td>
										<td><%=newlyOrderlist[i].formateorder_time%></td>
										<td>
											<%if(newlyOrderlist[i].order_status==0){%>
													<a href="/member/pay?order_id=<%=newlyOrderlist[i].order_Id%>">未付款</a> 
												<%}else if(newlyOrderlist[i].order_status==1){%>
													已付款
												<%}else if(newlyOrderlist[i].order_status==2){%>
													已发货
												<%}else if(newlyOrderlist[i].order_status==3){%>
													已完成
												<%}%>
										</td>
										<td><%=newlyOrderlist[i].pay_type%></td>
										<td> <a href="#">查看</a> </td>
									</tr>
								</tbody>
								<%}%>
								<%}else{%>
								<tr class="no-information"><td colspan="6">暂无订单</td></tr>
								<%}%>
							</table>
						</div>
					</div>
					<!--收藏区域-->
					<div class="member_fav">
						<div class="member-fav-title">
							<h2>最近的收藏</h2>
						</div>
						<div class="member-fav-content">
							<%if(newlyCollectlist.length>0){%>
							<table class="collect_main">
								<thead>
									<tr>
										<th class="check_class">商品编号</th>
										<th colspan="2">商品</th>
										<th>价格</th>
										<th>操作</th>
									</tr>
								</thead>
								<tbody>
									<%for(i=0;i<newlyCollectlist.length;i++){%>
									<tr>
										<td><%=newlyCollectlist[i].product_Id%></td>
										<td>
											<a href="#"><img src="<%=newlyCollectlist[i].product_img%>" /></a>
										</td>
										<td class="p-info">
											<div>
												<a href="#"><%=newlyCollectlist[i].product_name%></a>
											</div>
											<div>
												配送限定： 船运 自营转运（包税）
											</div>
										</td>
										<td class="p-price"><%=newlyCollectlist[i].new_price%></td>
										<td>
											<a onClick="return confirm('确定移除当前商品?');" href="/collect/removeCollecthandle/<%=newlyCollectlist[i].product_Id%>">移除</a>
										</td>
									</tr>
									<%}%>									
								</tbody>
							</table>
							<%}else{%>
							<table>
								<tr class="no-information"><td colspan="6">暂无收藏</td></tr>
							</table>
							<%}%>
						</div>
					</div>
				</div>
			</div>
			<!--内容结束-->
			<!--footer开始-->
			<% include ../template/footer.html %>				
			<!--footer结束-->
		</div>
	</body>

</html>